package one;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.server.RemoteControlConfiguration;
import org.openqa.selenium.server.SeleniumServer;

@SuppressWarnings("deprecation")
public class HTTPs extends SeleneseTestCase {
	public SeleniumServer ss;
	@Before
	public void setUp() throws Exception {
		
		RemoteControlConfiguration rcc=new RemoteControlConfiguration();
		rcc.setTrustAllSSLCertificates(true);
		ss=new SeleniumServer(rcc);
		
		ss.start();
		selenium = new DefaultSelenium("localhost", 4444, "*iehta", "https://www.dibbs.bsm.dla.mil/");
		
		selenium.start();
	}



	@Test
	public void testUntitled() throws Exception {
		selenium.open("/");
		selenium.windowMaximize();
		Thread.sleep(5000);
		
	}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
		ss.stop();
	}
}

